//
//  WorkingPlanCell.swift
//  QualityControlSystem
//
//  Created by dundun on 17/1/16.
//  Copyright © 2017年 com.mask. All rights reserved.
//

import UIKit
import SnapKit
import SDWebImage

class WorkingPlanCell: UICollectionViewCell {
    
    var imageView = UIImageView()
    var imageUrl: String? {
        didSet {
            imageView.image = UIImage(named: "placeholderImage.jpg")
        }
    }
    
    
    override init(frame: CGRect) {
        super.init(frame: frame)
        setupSubView()
    }
    
    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
    func setupSubView() {
        imageView.contentMode = .scaleAspectFill
        imageView.layer.masksToBounds = true
        contentView.addSubview(imageView)
        imageView.snp.makeConstraints({ (make) in
            make.right.left.top.bottom.equalTo(self)
        })
    }
}
